﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;

namespace DAL
{
    public class CallStatusService
    {
        CRMEntities db;
        public List<CallStatusEntity> LoadCallStatusByAll()
        {
            db = new CRMEntities();
            var query = (from c in db.CallStatus
                         orderby c.ID
                         select new CallStatusEntity
                         {
                             CallStatus_ID = c.ID,
                             CallStatusName = c.Name,
                             Description = c.Decription,
                             Parent_Code = c.Parent_Code,
                         }).ToList();
            return query;
        }
    }
}
